The Tab View Component > FTabView.getLength()

 

FTabView.getLength()

Availability

Flash Player 6.

Usage

myTab_tbv.getLength ()

Parameters

none

Returns

Returns the number of tabs within the component.

Description

Returns the number of tabs within the component.

Example

The following code adds two tabs to the component, and then traces out the length.

myTab_tbv.addItem( "Tab1" );
myTab_tbv.addItem( "Tab2" );
trace( "Length: " + myTab_tbv.getLength( ) ); //traces "Length: 2"